<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>选择登录染厂</title>

    <script type="text/javascript" src="../jquery-easyui-1.6.7/jquery.min.js"></script>

    <style>
        .d_main {
            position: absolute;
            top: 0px;
            bottom: 0px;
            left: 5px;
            right: 5px;
            border: 1px solid red;
        }

        .login {
            position: absolute;
            top: 50px;
            bottom: 50px;
            left: 10%;
            right: 10%;
            border: 1px solid darkorange;
        }

        .buttm {
            width: 100%;
            height: 15%;
            margin: 10px 0px;
        }


    </style>

    <script>

        var data=getQueryString('Data');
        window.onload = function(){

        };

        //var code = getQueryString("code");
        function getQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]); return null;
        }

        var liNodes = document.getElementsByTagName("input");
        for(var i = 0 ;i < liNodes.length; i++){

            var ID=liNodes[i].id;
            document.getElementById(ID).value=data[i].mill;
            console.log(i);
            console.log(ID);
        }

    </script>

</head>
<body>

<div class="d_main">

    <div class="login">
        <input type="button" class="buttm" id="bt1" value="1">
        <input type="button" class="buttm" id="bt2" value="2">
        <input type="button" class="buttm" id="bt3" value="3">
        <input type="button" class="buttm" id="bt4" value="4">
        <input type="button" class="buttm" id="bt5" value="5">

    </div>

<!-- style="display:none"-->


</div>




</body>
</html>